package com.isunland.managesystem.widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import com.ms.square.android.expandabletextview.ExpandableTextView;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/7/14 12:25
 */

public class MyExpandableTextView extends ExpandableTextView {

  public MyExpandableTextView(Context context) {
    super(context);
  }

  public MyExpandableTextView(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  public MyExpandableTextView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
  }

  @Override public void setText(@Nullable CharSequence text) {
    super.setText(text);
    setVisibility(VISIBLE);
  }

  @Override protected void onFinishInflate() {
    super.onFinishInflate();
    mTv.setOnClickListener(null);
  }
}
